package com.hgw.images.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.hgw.images.util.ImageListUrlConverterUtil;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.net.URL;
import java.util.List;

/**
 * Description: 根据URL导出图片
 *
 * @author Linhuibq-YanAn
 * @date 2022/10/9 17:35
 */
@Getter
@Setter
@EqualsAndHashCode
@ContentRowHeight(100)
@ColumnWidth(100 / 8)
public class ImageData {

    /**
     * 根据url导出
     *
     * @since 2.1.1
     */
    @ExcelProperty(value = "单张图")
    private URL url;

    @ExcelProperty(value = "多张图",converter = ImageListUrlConverterUtil.class)
    @ColumnWidth(60)
    private List<URL> excelUrlList;


}
